import { useHistory } from "react-router-dom"
const Home = () => {
  const history = useHistory()
  return (
    <div>
      <h1>首页</h1>
      <button onClick={() => history.go(-1)}>回退</button>
    </div>
  )
}
export default Home
